//
//  GameData.h
//  QuizMaster
//
//  Created by Jeppe Nielsen on 3/22/15.
//  Copyright (c) 2015 Jeppe Nielsen. All rights reserved.
//
#pragma once

#include "Property.hpp"
#include "GameObject.hpp"
#include <vector>
#include "GamePlayer.hpp"

using namespace Nano;

class GameData {
public:
    GameData();
    ~GameData();
    
    Property<GameData*, GameObject*> CurrentQuestion;
    Property<GameData*, GamePlayer*> CurrentPlayer;
    Property<GameData*, GamePlayer*> PlayerToAnswerQuestion;
    
    void EnabledAllBuzzers();
    void ResetPlayers();
    void SelectRandomPlayer();
    
    bool IsGameFinished;
    GamePlayer Players[4];
};